<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <title>美策平台</title>
    <link rel="icon" type="image/png" href="/img/icon.png">
    <link rel="stylesheet" type="text/css" href="../datepicker/jquery-ui.min.css">
    <link rel="stylesheet" type="text/css" href="../css/app.css">
    <link rel="stylesheet" type="text/css" href="../css/payType.css">
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="/pc/js/all.js"></script>
    <script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script>
</head>
<body>
    <div class="payAddCard">
        <div class="orderParamTitle">
            添加银行卡
            <img src="../images/return.png" class="orderRtns" onclick="history.go(-1)">
        </div>
        <div style="height:1.066667rem"></div>
        <div class="content">
            <p class="tip"><span>温馨提示：</span>只允许绑定本人银行卡</p>
            <div class="list">
                <div class="l">
                    <span>持卡人</span>
                    <input type="text" name="realName" placeholder="请输入本人真实姓名">
                </div>
                <div class="l">
                    <span>银行卡号</span>
                    <input type="text" placeholder="请输入本人储蓄卡号">
                </div>
                <div class="l">
                    <span>验证码</span>
                    <input type="text" placeholder="请输入验证码">
                    <button class="code">发送验证码</button>
                </div>
            </div>
            <div class="sButton" data-id="0">
                <div>确认绑定</div>
            </div>
        </div>
    </div>
    <script>
        $("input[name=realName]").bind('input propertychange',function(e){
            var val = $(this).val()
            if(val.length > 0) {
                $('.sButton').css('color', 'rgba(255, 255, 255, 1)').attr('data-id', 1)
            } else  {
                
                $('.sButton').css('color', 'rgba(255, 255, 255, .4)').attr('data-id', 0).unbind()
            }
        });
        $('.sButton').click(function() {
            var dataId = $(this).attr('data-id')
            if (dataId === '1') {
                window.location.href = 'payBankCard.html?isBank=1'
            } else {

            }
        })
    </script>
</body>
</html>